package com.neuedu.dao.impl;

import com.neuedu.dao.AddChongwuNumberDao;
import com.neuedu.model.AddChongwuNumber;
import com.neuedu.model.AddXiaoquNumber;
import com.neuedu.utils.DbUtil;

import java.util.List;


public class AddChongwuNumberDaoImpl implements AddChongwuNumberDao {
    @Override
    public AddChongwuNumber select() {
        List<AddChongwuNumber> list = DbUtil.select(AddChongwuNumber.class, "id=?", 1);
        if (list != null && list.size() > 0) {
            return list.get(0);
        }
        return null;
    }

    @Override
    public int update(AddChongwuNumber addChongwuNumber) {
        return DbUtil.update(addChongwuNumber,"id=?",1);
    }
}
